package com.kikt.recyclerview.loadmore

import com.kikt.recyclerview.loadmore.api.GoodApi
import retrofit2.Retrofit

val retrofit = Retrofit.Builder().baseUrl("https://test.sxw365.com/rest/sxw.php?").build()

class MainModelImpl(val mainPresenter: MainPresenter) : MainModel {
    override fun getData(refresh: Boolean) {
        runDelay(1200) {
            mainPresenter.onGetData(listOf(Data(0, "new 1"), Data(1, "new 2")), refresh)
        }
    }

}